<template>
  <div id="main_container">
    <div class="menu">
      <div>
        <router-link to="/about">About</router-link>
      </div>
      <div><router-link to="/news">News</router-link></div>
    </div>

    <router-view v-slot="{ Component }">
      <transition name="scale" mode="out-in">
        <component :is="Component" />
      </transition>
    </router-view>
  </div>
</template>

<style lang="scss" scoped>
#main_container {
  .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    a {
      padding: 10px 20px;
      display: block;
      text-decoration: none;
      &.router-link-active {
        color: red;
      }
    }
  }
}


</style>

